package com.gongpingjialoan.activity.sell;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.gongpingjialoan.R;
import com.gongpingjialoan.activity.main.BaseActivity;

/**
 * Created by Administrator on 2016/1/5.
 */
public class NoDearsSellActivity extends BaseActivity  {

    private Button mButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.nodears_layout);
        setTitle("快速卖车");
        mButton = (Button) findViewById(R.id.button);
//        submit();
        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //finish();
                startActivity(new Intent(NoDearsSellActivity.this, SellPrivateActivity.class));
            }
        });
    }



    //    private void submit() {
//        final AssessmentData ad = AssessmentData.getInstance();
//        progressDialog.show();
//        if(mNetDataJson == null) {
//            mNetDataJson = new NetDataJson(new NetDataJson.OnNetDataJsonListener() {
//                @Override
//                public void onDataJsonUpdate(JSONObject json) {
//                    progressDialog.dismiss();
//                }
//
//                @Override
//                public void onDataJsonError(String errorMessage) {
//                    progressDialog.dismiss();
//                }
//            });
//        }
//
//        mNetDataJson.addParam("brand", ad.getBrandSlug());
//        mNetDataJson.addParam("model", ad.getModelSlug());
//        mNetDataJson.addParam("model_detail", ad.getModelDetailSlug());
//        mNetDataJson.addParam("year", ad.getYear());
//        mNetDataJson.addParam("month", ad.getMonth());
//        mNetDataJson.addParam("mile", ad.getMile());
//        mNetDataJson.addParam("city", ad.getCity());
//        mNetDataJson.addParam("contact", "AndroidUser");
//        mNetDataJson.addParam("phone", mUserManager.getPhone());
//        mNetDataJson.addParam("gender", "男");
//        mNetDataJson.addParam("pricetype", "private_party");
//        mNetDataJson.setUrl(API.assessmentNewSubmit);
//        mNetDataJson.request("post");
//        progressDialog.show();
//    }

}
